<?php
class menu {
	var $IDMenu = null;
	var $NamaMenu = null;
	var $DeskripsiMenu = null;
	var $KisaranHarga = null;
	var $status = 0;
	
	//constructor
	function menu(){
		$this->connect();
	}
	// connect ke database WEPO-PKL
	function connect(){
		mysql_connect('localhost','root','') or die("cannot connect to server");
		mysql_select_db('wepopkl') or die("cannot select database");
	}
	//menambahkan list baru
	function insert(){
		mysql_query('INSERT INTO profilmenu ('IDMenu','NamaMenu','DeskripsiMenu','KisaranHarga') value ('.$this->IDMenu.', '.$this->NamaMenu.', '.this->DeskripsiMenu.', '.$this->KisaranHarga.')') or die ("data tidak berhasil dimasukkan");
	}
}
?>